#include <stdio.h>
#include <unistd.h>
#include <signal.h>



void mytest(int sig)
{
	printf("signal num = %d \n",sig);
}

int main(int argc, const char *argv[])
{		
	signal(SIGALRM,mytest);
	alarm(5);
	sleep(10);


	return 0;
}
